import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

//弹出框

import "reset-css";

//引入vant组件
// import Vant from "vant";
// import "vant/lib/index.css";
//使用vant组价
// Vue.use(Vant);

//抽取出来再引入
import "./vantui";

Vue.config.productionTip = false;

//价格过滤器
Vue.filter(
  "formatPrice",
  (price) => "￥" + parseFloat(price).toFixed(2) + "元"
);
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
